// moviecommon/getCommon_IndexList.do
import request from "@/utils/request"
import qs from "qs"
// https://ys.endata.cn/enlib-api/api/cinema/getcinemaboxoffice_day_list.do

function GetYypf(data) {
	return request.post(
		'/enlib-api/api/cinema/getcinemaboxoffice_day_list.do',
		qs.stringify(data), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
			},
			loading: true,
		}
	)
}

// https://ys.endata.cn/enlib-api/api/company/getcompanyboxoffice_list.do
function GetYt(data) {
	return request.post(
		'/enlib-api/api/company/getcompanyboxoffice_list.do',
		qs.stringify(data), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
			},
			loading: true,
		}
	)
}
// https://ys.endata.cn/enlib-api/api/line/getlineboxoffice_list.do
function GetYx(data) {
	return request.post(
		'/enlib-api/api/line/getlineboxoffice_list.do',
		qs.stringify(data), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
			},
			loading: true,
		}
	)
}
export {
	GetYypf,GetYt,GetYx
}
